//
//  UIPlayer.h
//  MGPolymerAdSDK_Example
//
//  Created by 虞嘉伟 on 2025/1/7.
//  Copyright © 2025 790879770@qq.com. All rights reserved.
  

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIPlayer : UIView
@property (nonatomic, strong) AVPlayerLayer *playerLayer;
//视频播放器
@property (nonatomic, strong) AVPlayer *avplayer;

@property (nonatomic, copy  ) NSString *mediaURL;

// 播放
- (void)play;
//暂停
- (void)pause;

@end

NS_ASSUME_NONNULL_END
